Skip to main content
Version: 8.4.10.4

SRAuctionState

V8 Message Definiton

METADATA

AttributeValue
Topic2510-market-data-auctions
MLink TokenOptExchAuction
ProductSRAuction
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
secKey_atenum - AssetTypePRI'None'
secKey_tsenum - TickerSrcPRI'None'
secKey_tkVARCHAR(12)PRI''
secKey_yrSMALLINT UNSIGNEDPRI0
secKey_mnTINYINT UNSIGNEDPRI0
secKey_dyTINYINT UNSIGNEDPRI0
secKey_xxDOUBLEPRI0
secKey_cpenum - CallPutPRI'Call'
secTypeenum - SpdrKeyTypePRI'None'
auctionExchenum - OptExchPRI'None'exchange handling the auction
auctionExDestVARCHAR(16)PRI''external exDest of auction usually means auction is offexchange
srAuctionIDBIGINT0unique SR AUCTION ID required when responding to an auction notice
exchAuctionIdVARCHAR(20)''
exchAuctionTypeVARCHAR(4)''
isTestAuctionenum - YesNo'None'test auction should only respond from Taccnts
auctionEventenum - AuctionEvent'None'
auctionShapeenum - NoticeShape'None'
auctionTypeenum - AuctionType'None'
auctionSideenum - BuySell'None'Market side clientimbalance side of auction if known responder should be opposite side
auctionSizeINT0size available to trade
auctionPriceDOUBLE0auction price can be positive or negative
isAuctionPriceValidenum - YesNo'None'
auctionDurationINT0expected auction imbalance action duration ms
auctionStartSizeINT0initial starting auction size
auctionStartPriceDOUBLE0initial starting auction price
auctionStartTimestampBIGINT0auction start timestamp
minResponseSizeINT0minimum size of the response order
limitTypeenum - AuctionLimitType'None'client imbalance limit type if available
firmTypeenum - FirmType'None'firm type of the client side of auction if available
memberMPIDVARCHAR(10)''exchange member initiating auction if available
clientAccntVARCHAR(10)''client account designation if known
otherDetailVARCHAR(16)''additional auction detail exchange specific
matchedSizeINT0size already matched may still be available to trade at a better price
numUpdatesTINYINT UNSIGNED0number of auction updates received not counting auction termination message
numResponsesTINYINT UNSIGNED0as reported by exchange if available
bestResponseSizeINT0
bestResponsePriceDOUBLE0
cumFillQuantityINT0as reported by exchange if available
avgFillPriceDOUBLE0
marketStatusenum - MarketStatus'None'market status preopen open closed etc
srcTimestampBIGINT0source timestamp nanoseconds if available
netTimestampBIGINT0network timestamp message arrival direct exchange gateway
dgwTimestampBIGINT0network timestamp mbus message send direct exchange gateway
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
LegsListJSON'JSON_OBJECT()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
secKey_tk1
secKey_yr2
secKey_mn3
secKey_dy4
secKey_xx5
secKey_cp6
secKey_at7
secKey_ts8
secType9
auctionExch10
auctionExDest11

JSON Block (LegsList)

FieldTypeComment
legSecKeyenum - legSecKey
legSecTypeenum - SpdrKeyType
legSideenum - BuySell
legRatioenum - legRatioleg ratio 1 2 etc

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAuction`.`MsgSRAuctionState` (
`secKey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`secKey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`secKey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`secKey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_xx` DOUBLE NOT NULL DEFAULT 0,
`secKey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call',
`secType` ENUM('None','Stock','Future','Option','MLeg') NOT NULL DEFAULT 'None',
`auctionExch` ENUM('None','AMEX','BOX','CBOE','ISE','NYSE','PHLX','NSDQ','BATS','C2','NQBX','MIAX','GMNI','CME','CBOT','NYMEX','COMEX','ICE','EDGO','MCRY','MPRL','SDRK','DQTE','EMLD','CFE','MEMX','SPHR','EUREX','CEDX','NXAM','NXBR','NXLS','NXML','NXOS','NXP','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'exchange handling the auction',
`auctionExDest` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'external exDest of auction (usually means auction is off-exchange)',
`srAuctionID` BIGINT NOT NULL DEFAULT 0 COMMENT 'unique SR AUCTION ID (required when responding to an auction notice)',
`exchAuctionId` VARCHAR(20) NOT NULL DEFAULT '',
`exchAuctionType` VARCHAR(4) NOT NULL DEFAULT '',
`isTestAuction` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'test auction (should only respond from T.accnts)',
`auctionEvent` ENUM('None','Start','Update','End') NOT NULL DEFAULT 'None',
`auctionShape` ENUM('None','Single','MLeg') NOT NULL DEFAULT 'None',
`auctionType` ENUM('None','Exposure','Improvement','Facilitation','Solicitation','Opening','Closing','RFQ','Block','Flash') NOT NULL DEFAULT 'None',
`auctionSide` ENUM('None','Buy','Sell') NOT NULL DEFAULT 'None' COMMENT 'Market side (client/imbalance side of auction; if known) [responder should be opposite side]',
`auctionSize` INT NOT NULL DEFAULT 0 COMMENT 'size available to trade',
`auctionPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'auction price (can be positive or negative)',
`isAuctionPriceValid` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
`auctionDuration` INT NOT NULL DEFAULT 0 COMMENT 'expected auction / imbalance action duration (ms)',
`auctionStartSize` INT NOT NULL DEFAULT 0 COMMENT 'initial (starting) auction size',
`auctionStartPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'initial (starting) auction price',
`auctionStartTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'auction start timestamp',
`minResponseSize` INT NOT NULL DEFAULT 0 COMMENT 'minimum size of the response order',
`limitType` ENUM('None','Market','Limit') NOT NULL DEFAULT 'None' COMMENT 'client / imbalance limit type (if available)',
`firmType` ENUM('None','Customer','Firm','MarketMaker','ProCustomer','BrokerDealer','AwayMM','FirmJBO','BrkrDlrCust') NOT NULL DEFAULT 'None' COMMENT 'firm type of the client side of auction (if available)',
`memberMPID` VARCHAR(10) NOT NULL DEFAULT '' COMMENT 'exchange member initiating auction (if available)',
`clientAccnt` VARCHAR(10) NOT NULL DEFAULT '' COMMENT 'client account designation (if known)',
`otherDetail` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'additional auction detail (exchange specific)',
`matchedSize` INT NOT NULL DEFAULT 0 COMMENT 'size already matched (may still be available to trade at a better price)',
`numUpdates` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'number of auction updates received (not counting auction termination message)',
`numResponses` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'as reported by exchange (if available)',
`bestResponseSize` INT NOT NULL DEFAULT 0,
`bestResponsePrice` DOUBLE NOT NULL DEFAULT 0,
`cumFillQuantity` INT NOT NULL DEFAULT 0 COMMENT 'as reported by exchange (if available)',
`avgFillPrice` DOUBLE NOT NULL DEFAULT 0,
`marketStatus` ENUM('None','PreOpen','PreCross','Cross','Open','Closed','Halted','AfterHours') NOT NULL DEFAULT 'None' COMMENT 'market status (pre-open, open, closed, etc)',
`srcTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'source timestamp (nanoseconds) if available',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'network timestamp message arrival @ direct exchange gateway',
`dgwTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'network timestamp mbus message send @ direct exchange gateway',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`LegsList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(LegsList)),
PRIMARY KEY USING HASH (`secKey_tk`,`secKey_yr`,`secKey_mn`,`secKey_dy`,`secKey_xx`,`secKey_cp`,`secKey_at`,`secKey_ts`,`secType`,`auctionExch`,`auctionExDest`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`secKey_at`,
`secKey_ts`,
`secKey_tk`,
`secKey_yr`,
`secKey_mn`,
`secKey_dy`,
`secKey_xx`,
`secKey_cp`,
`secType`,
`auctionExch`,
`auctionExDest`,
`srAuctionID`,
`exchAuctionId`,
`exchAuctionType`,
`isTestAuction`,
`auctionEvent`,
`auctionShape`,
`auctionType`,
`auctionSide`,
`auctionSize`,
`auctionPrice`,
`isAuctionPriceValid`,
`auctionDuration`,
`auctionStartSize`,
`auctionStartPrice`,
`auctionStartTimestamp`,
`minResponseSize`,
`limitType`,
`firmType`,
`memberMPID`,
`clientAccnt`,
`otherDetail`,
`matchedSize`,
`numUpdates`,
`numResponses`,
`bestResponseSize`,
`bestResponsePrice`,
`cumFillQuantity`,
`avgFillPrice`,
`marketStatus`,
`srcTimestamp`,
`netTimestamp`,
`dgwTimestamp`,
`timestamp`,
`LegsList`
FROM `SRAuction`.`MsgSRAuctionState`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`secKey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`secKey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`secKey_tk` = 'Example_secKey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`secKey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`secKey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`secKey_dy` = 1
AND
/* Replace with a DOUBLE */
`secKey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`secKey_cp` = 'Call'
AND
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`secType` = 'None'
AND
/* Replace with a ENUM('None','AMEX','BOX','CBOE','ISE','NYSE','PHLX','NSDQ','BATS','C2','NQBX','MIAX','GMNI','CME','CBOT','NYMEX','COMEX','ICE','EDGO','MCRY','MPRL','SDRK','DQTE','EMLD','CFE','MEMX','SPHR','EUREX','CEDX','NXAM','NXBR','NXLS','NXML','NXOS','NXP','ICEFE') */
`auctionExch` = 'None'
AND
/* Replace with a VARCHAR(16) */
`auctionExDest` = 'Example_auctionExDest';

Doc Columns Query

SELECT * FROM SRAuction.doccolumns WHERE TABLE_NAME='SRAuctionState' ORDER BY ordinal_position ASC;